package com.sdtest.perfmall.product.feign;

import com.sdtest.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author LiWen
 * @version 1.0
 * @Date: 2020-11-17 09:49
 * @Description: 调用库存业务接口
 * 1、开启原创调用 @EnableFeignClients
 * 2、在远程调用
 */
@FeignClient("perfmall-ware")
@RequestMapping("/wnsstock/wareinfo")
public interface WareProviderService {

    @RequestMapping("/list")
    public R list(@RequestParam("params") Map<String, Object> params);

}
